<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/wpui-admin/wp-ewallet-admin/static/plugin/layuimini/lib/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" href="/wpui-admin/wp-ewallet-admin/static/plugin/layuimini/css/public.css" media="all">
    <link rel="stylesheet" href="/wpui-admin/wp-ewallet-admin/static/css/wp.css" media="all">

    <style>
        .item {
            height: 50px;
            border-bottom: 1px solid #dddddd;
            line-height: 50px;
        }

        .key {
            float: left;
        }

        .value {
            float: right;
        }

        .input-block {
            margin-right: 50px;
        }

        .unit {
            position: absolute;
            right: 0px;
            top: 0px;
            right: -30px;
            line-height: 40px;
        }
    </style>
</head>
<body>
<div id="container" class="layuimini-container">
    <div class="layuimini-main">

        <h2 class="wp-module-title">兑换申请详情</h2>
        <div class="wp-module-box wp-module-border">

            <div class="item">
                <div class="key">申请单类型</div>
                <div class="value">兑换申请单</div>
            </div>

            <div class="item">
                <div class="key">申请单状态</div>
                <div class="value" v-show="orderStatus==1000">待处理</div>
                <div class="value" v-show="orderStatus==2000">处理完成</div>
            </div>

            <div class="item">
                <div class="key">申请单账号</div>
                <div class="value" v-text="accountId"></div>
            </div>

            <div class="item">
                <div class="key">申请单地址</div>
                <div class="value" v-text="walletAddress"></div>
            </div>

            <div class="item">
                <div class="key">申请单时间</div>
                <div class="value" v-text="createDate"></div>
            </div>

            <div class="item">
                <div class="key">申请单备注</div>
                <div class="value" v-text="remark"></div>
            </div>

        </div>

        <div class="wp-module-box" style="margin-top: 15px; border-bottom:2px solid #81BEF9;" >
            <h3><b>处理信息</b></h3>

            <div class="item">
                <div class="key">处理人</div>
                <div class="value" v-text="operUser"></div>
            </div>

            <div class="item">
                <div class="key">处理结果</div>
                <div class="value" v-show="operResult==1000">兑换成功</div>
                <div class="value" v-show="operResult==2000">兑换失败</div>
            </div>

            <div class="item">
                <div class="key">处理时间</div>
                <div class="value" v-text="operTime"></div>
            </div>

            <div class="item">
                <div class="key">处理备注</div>
                <div class="value" v-text="operRemark"></div>
            </div>
        </div>
        <div class="wp-module-box" style="margin-top: 15px;border-bottom:2px solid #81BEF9;">
            <h3><b>兑换信息</b></h3>
            <div class="item">
                <div class="key">转入币种</div>
                <div class="value" v-show="turnMoneyType==1000">USDT</div>
                <div class="value" v-show="turnMoneyType==2000">SHQC</div>
                <div class="value" v-show="turnMoneyType==3000">ETH</div>
            </div>
            <div class="item">
                <div class="key">转入金额</div>

                <div class="value" v-show="turnMoneyType==1000">USDT</div>
                <div class="value" v-show="turnMoneyType==2000">SHQC</div>
                <div class="value" v-show="turnMoneyType==3000">ETH</div>
                <div class="value"  v-text="moneyAmount" style="margin-right: 4px"> </div>
            </div>
            <div class="item">
                <div class="key">兑换币种</div>
                <div class="value" v-show="exchangeMoneyType==1000">USDT</div>
                <div class="value" v-show="exchangeMoneyType==2000">SHQC</div>
                <div class="value" v-show="exchangeMoneyType==3000">ETH</div>
            </div>
            <div class="item">
                <div class="key">融资伦次</div>
                <div class="value" v-show="exchangeRate=='1:23'">天使轮</div>
                <div class="value" v-show="exchangeRate=='1:17'">基石轮</div>
            </div>
            <div class="item">
                <div class="key">兑换数量</div>
                <div class="value" v-text="exchangeAmount"></div>
            </div>
        </div>
    </div>
</div>
    <script src="/wpui-admin/wp-ewallet-admin/static/js/jquery-3.4.1.min.js"></script>
    <script src="/wpui-admin/wp-ewallet-admin/static/plugin/layuimini/lib/layui/layui.js" charset="utf-8"></script>
    <script src="/wpui-admin/wp-ewallet-admin/module/index/config.js" charset="utf-8"></script>
    <script src="/wpui-admin/wp-ewallet-admin/global/wp.js" charset="utf-8"></script>
    <script src="/wpui-admin/wp-ewallet-admin/static/js/vue.js" charset="utf-8"></script>
    <script src="/wpui-admin/wp-ewallet-admin/static/js/vue-i18n.js" charset="utf-8"></script>
    <script src="/wpui-admin/wp-ewallet-admin/global/wp-i18n.js" charset="utf-8"></script>
    <script src="/wpui-admin/wp-ewallet-admin/global/wp-project.js" charset="utf-8"></script>
    <script>
        layui.use(['form', 'table', 'element'], function () {
            var $ = layui.jquery,
                form = layui.form,
                element = layui.element;

            var vm = new Vue({
                el: '#container',
                i18n: wp.i18n(),
                data: {
                    name: '张三',
                    reqOrderId: "",
                    turnMoneyType: "",
                    moneyAmount: "",
                    exchangeMoneyType: "",
                    reqType: "",
                    orderStatus: "",
                    walletAddress: "",
                    accountId: "",
                    remark: "",
                    reqTypeName: "",
                    operResult: "",
                    operUser: "",
                    operRemark: "",
                    exchangeRate: "",
                    exchangeAmount: "",
                    converType: "",
                    turnMoneyTypeName: "",
                    exchangeMoneyTypeName: "",
                    createDate:'',
                    operTime:'',
                },
                mounted: function () {
                    this.getExchangeMoneyReqOrderById();
                },
                methods: {
                    getExchangeMoneyReqOrderById: function () {
                        var data = window.data;
                        var that = this;
                        wp.httpGet({
                            url: wp.url("/wp/ewallet/wallet/reqOrder/id/exchangeMoney"),
                            data: {
                                orderId: data.reqOrderId
                            },
                            success: function (data) {
                                // console.log(" &&&&&&&=  "+JSON.stringify(data.dataBody));
                                $.extend(that,data.dataBody);
                                //that.exchange();
                                that.$nextTick(function(){
                                    // 赋值完后再次渲染表单下拉框方可正常选中
                                    form.render();
                                });
                            }
                        })
                    }
                }
            });

        });
    </script>

</body>
</html>